package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 获取「群聊数据统计」按群主聚合的方式数据响应对象
 * @author: liukunlong
 * @date: 2021-03-05 10:31
 */
public class GroupChatStatisticResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * total : 2
     * next_offset : 2
     * items : [{"owner":"zhangsan","data":{"new_chat_cnt":2,"chat_total":2,"chat_has_msg":0,"new_member_cnt":0,"member_total":6,"member_has_msg":0,"msg_total":0}},{"owner":"lisi","data":{"new_chat_cnt":1,"chat_total":3,"chat_has_msg":2,"new_member_cnt":0,"member_total":6,"member_has_msg":0,"msg_total":0}}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * total
     */
    @JSONField(name = "total")
    private Integer total;
    /**
     * nextOffset
     */
    @JSONField(name = "next_offset")
    private Integer nextOffset;
    /**
     * items
     */
    @JSONField(name = "items")
    private List<ItemsDTO> items;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getNextOffset() {
        return nextOffset;
    }

    public void setNextOffset(Integer nextOffset) {
        this.nextOffset = nextOffset;
    }

    public List<ItemsDTO> getItems() {
        return items;
    }

    public void setItems(List<ItemsDTO> items) {
        this.items = items;
    }

    public static class ItemsDTO {
        /**
         * owner
         */ /**
         * owner : zhangsan
         * data : {"new_chat_cnt":2,"chat_total":2,"chat_has_msg":0,"new_member_cnt":0,"member_total":6,"member_has_msg":0,"msg_total":0}
         */

        @JSONField(name = "owner")
        private String owner;
        /**
         * data
         */
        @JSONField(name = "data")
        private DataDTO data;

        public String getOwner() {
            return owner;
        }

        public void setOwner(String owner) {
            this.owner = owner;
        }

        public DataDTO getData() {
            return data;
        }

        public void setData(DataDTO data) {
            this.data = data;
        }

        public static class DataDTO {
            /**
             * newChatCnt
             */ /**
             * new_chat_cnt : 2
             * chat_total : 2
             * chat_has_msg : 0
             * new_member_cnt : 0
             * member_total : 6
             * member_has_msg : 0
             * msg_total : 0
             */

            @JSONField(name = "new_chat_cnt")
            private Integer newChatCnt;
            /**
             * chatTotal
             */
            @JSONField(name = "chat_total")
            private Integer chatTotal;
            /**
             * chatHasMsg
             */
            @JSONField(name = "chat_has_msg")
            private Integer chatHasMsg;
            /**
             * newMemberCnt
             */
            @JSONField(name = "new_member_cnt")
            private Integer newMemberCnt;
            /**
             * memberTotal
             */
            @JSONField(name = "member_total")
            private Integer memberTotal;
            /**
             * memberHasMsg
             */
            @JSONField(name = "member_has_msg")
            private Integer memberHasMsg;
            /**
             * msgTotal
             */
            @JSONField(name = "msg_total")
            private Integer msgTotal;

            public Integer getNewChatCnt() {
                return newChatCnt;
            }

            public void setNewChatCnt(Integer newChatCnt) {
                this.newChatCnt = newChatCnt;
            }

            public Integer getChatTotal() {
                return chatTotal;
            }

            public void setChatTotal(Integer chatTotal) {
                this.chatTotal = chatTotal;
            }

            public Integer getChatHasMsg() {
                return chatHasMsg;
            }

            public void setChatHasMsg(Integer chatHasMsg) {
                this.chatHasMsg = chatHasMsg;
            }

            public Integer getNewMemberCnt() {
                return newMemberCnt;
            }

            public void setNewMemberCnt(Integer newMemberCnt) {
                this.newMemberCnt = newMemberCnt;
            }

            public Integer getMemberTotal() {
                return memberTotal;
            }

            public void setMemberTotal(Integer memberTotal) {
                this.memberTotal = memberTotal;
            }

            public Integer getMemberHasMsg() {
                return memberHasMsg;
            }

            public void setMemberHasMsg(Integer memberHasMsg) {
                this.memberHasMsg = memberHasMsg;
            }

            public Integer getMsgTotal() {
                return msgTotal;
            }

            public void setMsgTotal(Integer msgTotal) {
                this.msgTotal = msgTotal;
            }
        }
    }
}
